﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="manageUser.aspx.cs" Inherits="admin_manageUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/body.css" rel="stylesheet" type="text/css" />
    <link href="../css/table.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .main
        {
            text-align: left;
            width: 800px;
            margin-left:50px;
            margin-top:30px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        function openWin(u, w, h) {
            var l = (screen.width - w) / 2;
            var t = (screen.height - h) / 2;
            var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l;
            s += ', toolbar=no, scrollbars=no, menubar=no, location=no, resizable=no';
            open(u, 'oWin', s);
        } 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <table align="center" id="Tab" class="tab">
            <tr>
                <th width="100">
                    编号
                </th>
                <th width="110">
                    用户名
                </th>
                <th width="100">
                    金币值
                </th>
                <th width="100">
                    邮件
                </th>
                <th width="60">
                    性别
                </th>
                <th width="70">
                    状态
                </th>
                <th width="70">
                    修改
                </th>
                
            </tr>
            <asp:Repeater ID="userList" runat="server">
                <ItemTemplate>
                    <tr style='background-color: <%#(Container.ItemIndex%2==0)?"#eeeeee":"#ffffff"%>'
                        onmouseover="this.style.background='#ddeeff'" onmouseout="this.style.background='<%#(Container.ItemIndex%2==0)?"#eeeeee":"#ffffff"%>'">
                        <td>
                            <a target="_self" href="javascript:void(openWin('userCourseInfo.aspx?stuId=<%# DataBinder.Eval(Container.DataItem, "userID")%>', 700, 400));">
                                <%# DataBinder.Eval(Container.DataItem, "userID")%></a>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "username")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "gold")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "email")%>
                            </td>
                            <td>
                            <%# DataBinder.Eval(Container.DataItem, "sex")%>
                            </td>
                            <td>
                            <%# DataBinder.Eval(Container.DataItem, "status").ToString().Equals("0") ? "正常" : "停用"%>
                            </td>
                           <%-- <td>
                                <a href="addTotal.aspx?id=<%# DataBinder.Eval(Container.DataItem, "userID")%>" target="_self">
                                    [增加]</a>
                            </td>--%>
                            <td>
                                <a href="updateUser.aspx?id=<%# DataBinder.Eval(Container.DataItem, "userID")%>" target="_self">
                                    [修改]</a>
                            </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <br />
        <br />
        <div align="center">
            [页次:<asp:Label ID="nowPage" runat="server" Font-Bold="True"></asp:Label>/<asp:Label
                ID="allPages" runat="server" Font-Bold="True" ForeColor="#C00000"></asp:Label>]
            [共<asp:Label ID="allMsg" runat="server" Font-Bold="True"></asp:Label>条
            <asp:Label ID="onePage" runat="server" Font-Bold="True"></asp:Label>条/页] [<asp:HyperLink
                ID="firstPage" runat="server">首页</asp:HyperLink>] [<asp:HyperLink ID="prePage" runat="server">上一页</asp:HyperLink>]
            [<asp:HyperLink ID="nextPage" runat="server">下一页</asp:HyperLink>] [<asp:HyperLink
                ID="endPage" runat="server">尾页</asp:HyperLink>]
        </div>
    </div>
    </form>
</body>
</html>
